/*
 * Decompiled with CFR 0.150.
 * 
 * Could not load the following classes:
 *  cn.hutool.core.util.ObjectUtil
 */
package com.gys.data.example;

import cn.hutool.core.util.ObjectUtil;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class GetResourceOutData
implements Serializable {
    private static final long serialVersionUID = 1L;
    private String id;
    private String name;
    private String icon;
    private String path;
    private String pagePath;
    private String title;
    private String pid;
    private String type;
    private List<GetResourceOutData> nodes;

    public void addChild(GetResourceOutData child) {
        if (ObjectUtil.isEmpty(this.nodes)) {
            this.nodes = new ArrayList<GetResourceOutData>();
        }
        this.nodes.add(child);
    }

    public String getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public String getIcon() {
        return this.icon;
    }

    public String getPath() {
        return this.path;
    }

    public String getPagePath() {
        return this.pagePath;
    }

    public String getTitle() {
        return this.title;
    }

    public String getPid() {
        return this.pid;
    }

    public String getType() {
        return this.type;
    }

    public List<GetResourceOutData> getNodes() {
        return this.nodes;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public void setPagePath(String pagePath) {
        this.pagePath = pagePath;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setNodes(List<GetResourceOutData> nodes) {
        this.nodes = nodes;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof GetResourceOutData)) {
            return false;
        }
        GetResourceOutData other = (GetResourceOutData)o;
        if (!other.canEqual(this)) {
            return false;
        }
        String this$id = this.getId();
        String other$id = other.getId();
        if (this$id == null ? other$id != null : !this$id.equals(other$id)) {
            return false;
        }
        String this$name = this.getName();
        String other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        String this$icon = this.getIcon();
        String other$icon = other.getIcon();
        if (this$icon == null ? other$icon != null : !this$icon.equals(other$icon)) {
            return false;
        }
        String this$path = this.getPath();
        String other$path = other.getPath();
        if (this$path == null ? other$path != null : !this$path.equals(other$path)) {
            return false;
        }
        String this$pagePath = this.getPagePath();
        String other$pagePath = other.getPagePath();
        if (this$pagePath == null ? other$pagePath != null : !this$pagePath.equals(other$pagePath)) {
            return false;
        }
        String this$title = this.getTitle();
        String other$title = other.getTitle();
        if (this$title == null ? other$title != null : !this$title.equals(other$title)) {
            return false;
        }
        String this$pid = this.getPid();
        String other$pid = other.getPid();
        if (this$pid == null ? other$pid != null : !this$pid.equals(other$pid)) {
            return false;
        }
        String this$type = this.getType();
        String other$type = other.getType();
        if (this$type == null ? other$type != null : !this$type.equals(other$type)) {
            return false;
        }
        List<GetResourceOutData> this$nodes = this.getNodes();
        List<GetResourceOutData> other$nodes = other.getNodes();
        return !(this$nodes == null ? other$nodes != null : !(this$nodes).equals(other$nodes));
    }

    protected boolean canEqual(Object other) {
        return other instanceof GetResourceOutData;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        String $id = this.getId();
        result = result * 59 + ($id == null ? 43 : $id.hashCode());
        String $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        String $icon = this.getIcon();
        result = result * 59 + ($icon == null ? 43 : $icon.hashCode());
        String $path = this.getPath();
        result = result * 59 + ($path == null ? 43 : $path.hashCode());
        String $pagePath = this.getPagePath();
        result = result * 59 + ($pagePath == null ? 43 : $pagePath.hashCode());
        String $title = this.getTitle();
        result = result * 59 + ($title == null ? 43 : $title.hashCode());
        String $pid = this.getPid();
        result = result * 59 + ($pid == null ? 43 : $pid.hashCode());
        String $type = this.getType();
        result = result * 59 + ($type == null ? 43 : $type.hashCode());
        List<GetResourceOutData> $nodes = this.getNodes();
        result = result * 59 + ($nodes == null ? 43 : ($nodes).hashCode());
        return result;
    }

    public String toString() {
        return "GetResourceOutData(id=" + this.getId() + ", name=" + this.getName() + ", icon=" + this.getIcon() + ", path=" + this.getPath() + ", pagePath=" + this.getPagePath() + ", title=" + this.getTitle() + ", pid=" + this.getPid() + ", type=" + this.getType() + ", nodes=" + this.getNodes() + ")";
    }
}

